package fauxman.StaticElements;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

import fauxman.Enums.GameElementName;

public class Wormhole extends PlayableArea{
	private int dConX;
	private int dConY;
	private int dDisX;
	private int dDisY;
	
	public Wormhole(int sX, int sY, int width, int height, int dConX, int dConY, int dDisX, int dDisY) {
		super(sX, sY, width, height);
		this.dConX = dConX;
		this.dConY = dConY;
		this.dDisX = dDisX;
		this.dDisY = dDisY;
		this.gNum = GameElementName.WORMHOLE;
	}
	
	public Point getContinuousDestination(){
		return new Point(dConX,dConY);
	}
	
	public Point getDiscreteDestination(){
		return new Point(dDisX,dDisY);
	}
	
	public void draw(Graphics g){
		g.setColor(Color.GREEN);
		g.fillRect((int)conHitbox.getX(),(int)conHitbox.getY(),(int)conHitbox.getWidth(),(int)conHitbox.getHeight());
	}
	
	public String toString(){
		return "WH";
	}
}
